package com.example.tse.rbhttpservice.service.group.model;

import com.example.tse.rbhttpservice.service.RudderResponse;


/**
 * 输入团购码获取团购信息，只有完全匹配的团购码才能获取到信息，无联想搜索功能
 * @author wliu
 * edit tse
 */
public class GroupGetByCodeResponse extends RudderResponse{
    
    private String groupId = "";
		
    
    private String name = "";
		
    
    private String instId = "";
		
	
    /**
     * @return groupId
     */	
    public String getGroupId() { 
	    return this.groupId;
    };
	
	/**
     * @return groupId
     */	
    public void setGroupId(String groupId) { 
        this.groupId = groupId;
    };
    
    /**
     * @return name
     */	
    public String getName() { 
	    return this.name;
    };
	
	/**
     * @return name
     */	
    public void setName(String name) { 
        this.name = name;
    };
    
    /**
     * @return instId
     */	
    public String getInstId() { 
	    return this.instId;
    };
	
	/**
     * @return instId
     */	
    public void setInstId(String instId) { 
        this.instId = instId;
    };
    
	
        
    public static void filter(GroupGetByCodeResponse group) {
        if (group.getGroupId() == null) {
            group.setGroupId("");
        }
        if (group.getName() == null) {
            group.setName("");
        }
        if (group.getInstId() == null) {
            group.setInstId("");
        }
    }
}
